import React, { Component } from 'react';
import { connect } from 'dva';

export default class GetData extends Component {
  	constructor(props) {
    	super(props);
    	this.handleClick = this.handleClick.bind(this);
  	}
  	handleClick = () => {
  		console.log(this.props);
  	}
	render() {
		const { source } = this.props;
	    return (
	    	<div>
		    	<button onClick={this.handleClick}>获取数据</button>
		    	<div>{ source }</div>
	    	</div>
	    );
	}
}
